home *** CD-ROM | disk | FTP | other *** search
- /*
- File: MyComponent.h
-
- Contains: simple component sample.
-
- Written by: John Wang
-
- Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <1> 03/14/94 JW Re-Created for Universal Headers.
-
- To Do:
-
- */
-
- #ifdef THINK_C
- #define applec
- #endif
-
- #define kDEBUGME 0 //set to 1 for macsbug breaks
-
- #define kMyComponentSpec 1L
- #define kMyComponentVersion 0L
-
- typedef struct {
- int shared;
- } SharedGlobals;
-
-
-
- #define MySignature 'SMPL'
- #define MaxIDSlot 100
-
-
- typedef struct
- {
- Component ffself;
- ComponentInstance gSelf;
- OSErr errorNumber;
- AEDesc errorDesc;
- AEDesc scriptIDSlot[MaxIDSlot];
- }GlobalsRecord, *GlobalsPtr, **GlobalsHandle;
-
-
-
-
- /* ------------------------------------------------------------------------- */
-
- #ifdef DEBUG_IT
- pascal ComponentResult OSADispatcher(ComponentParameters *params, char **storage);
- #endif //DEBUG_IT
-
- pascal ComponentResult MyOpen(ComponentInstance self);
- pascal ComponentResult MyClose(Handle storage,ComponentInstance self);
- pascal ComponentResult MyCanDo(short selector);
- pascal ComponentResult MyVersion(void);
- pascal ComponentResult MyRegister(void);
- pascal ComponentResult MyTarget(Handle storage, ComponentInstance self);
-
- //pascal ComponentResult OSADispatcher(ComponentParameters *params, char **storage);